package org.gfix.parser;

/**
 * This class allows the parser to have different validation modes, 
 * by default the framework comes with two implementations of this interface
 * See the implementors
 * @author alan
 *
 */
public interface FixMessageValidator {

	/**
	 * Validates the given tag is correct.
	 * 
	 * @param tag
	 * @param contents
	 * @return a FixParseFault if a validation error occurred
	 * otherwise null.
	 */
	public FixParseFault validate(int tag, String contents);
}
